#include <iostream>

class Test
{
public:
    Test()
    {
        std::cout<<"构造函数"<<std::endl;
    }
    ~Test()
    {
        std::cout<<"析构函数"<<std::endl;
    }
private:
    int a;
};

int main()
{
    Test *t = (Test*)malloc(sizeof(Test));
    free(t);
    return 0;
}


